package com.spring4.mvc.config;  
  
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Profile;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;



@Configuration 
@ComponentScan(basePackages = {"com.spring4.mvc"}, excludeFilters=@ComponentScan.Filter(Configuration.class))
@EnableWebMvc   
@EnableAspectJAutoProxy


public class Config extends WebMvcConfigurerAdapter  {  
	
	/**
	 * Properties to support the 'embedded' mode of operation.
	 */
	@Configuration
	@Profile("embedded")
	@PropertySource("classpath:com/lp/spring4/config/embedded.properties")
	static class Embedded {
	}

	/**
	 * Properties to support the 'standard' mode of operation.
	 */
	@Configuration
	@Profile("standard")
	@PropertySource("classpath:com/lp/spring4/config/application.properties")
	static class Standard {
	}
	
 
	
	 
}  
